package com.ruoyi.merchant.mapper;

import com.ruoyi.merchant.domain.Statistics;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface ImsStatisticsMapper {
    public Integer countUser();

    public Integer countOrder();

    // 按照收入分类占比查询统计
    List<Statistics> proportionOrder(@Param("deptId") Long deptId);

    // 按照门店分类占比查询统计
    List<Statistics> proportionShopOrder(@Param("deptId") Long deptId);

    List<Statistics> proportionOrderForDay(@Param("deptId")Long deptId);

    List<Statistics> proportionShopOrderForDay(@Param("deptId")Long deptId);

    public BigDecimal getTotalAmount();
}
